let arr = [{name:'csc'},{name:'hhh'}]




Array.prototype.myfind = function(callback) {
    for(let i = 0; i < this.length; i++) {
        if(callback(this[i], i, this)) {
            return this[i]
        }
    }
}

let a = arr.myfind(item => item.name = 'csc')
console.log(a);